<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

<ui:composition template="../comum/template.xhtml">
	<ui:define name="conteudo">
	 <div class="central">
        <rich:dataTable 
        	id="layers" 
        	value="#{HomeBean.listaLayer}" 
        	var="layer" 
        	columnClasses="50,60,40" 
        	rows="10" 
        	style="width:100%">
        	
        	<f:facet name="caption">
				<h:outputText value="Camadas Cadastradas" />			
			</f:facet>
			
			<f:facet name="header">			
				<h:outputText value="Lista de camadas" />			
			</f:facet>

			<rich:column>			
				<f:facet name="header">ID</f:facet>			
				<h:outputText value="#{layer.id}" />			
			</rich:column>
			
			<rich:column>			
				<f:facet name="header">Nome</f:facet>			
				<h:outputText value="#{layer.layer}" />			
			</rich:column>
			
			<rich:column>			
				<f:facet name="header"></f:facet>			
				</rich:column>
			
			<f:facet name="footer">			
				<h:outputText value="Rodapé" />			
			</f:facet>
        </rich:dataTable>
        <rich:dataScroller 
        	align="left" 
        	for="layers" 
        	maxPages="20" style="width:100%">
        </rich:dataScroller>
        </div>
	</ui:define>
</ui:composition>

</html>